﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <include file="Public/template"/>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta content="" name="description" />
    <meta content="webthemez" name="author" />
    <title>Bootstrap Admin Theme</title>
    <!-- Bootstrap Styles-->
    <link href="assets/css/bootstrap.css" rel="stylesheet" />
    <!-- FontAwesome Styles-->
    <link href="assets/css/font-awesome.css" rel="stylesheet" />

    <link href="assets/css/select2.min.css" rel="stylesheet" >
    <link href="assets/css/checkbox3.min.css" rel="stylesheet" >
    <!-- Custom Styles-->
    <link href="assets/css/custom-styles.css" rel="stylesheet" />
    <!-- Google Fonts-->
    <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
</head>
<body>
<div id="wrapper">


    <div id="page-wrapper" >
        <div class="header">
            <h1 class="page-header">
                提问 <small>Add Question</small>
            </h1>
        </div>

        <div id="page-inner">
            <form method="post" action="{:U('Question/doQuestionAdd')}" enctype="multipart/form-data">

                <div class="form-group">
                    <label for="q_title">问题标题</label>
                    <input type="text" class="form-control" name="q_title" id="q_title" placeholder="输入问题标题">
                </div>


                <div class="form-group">
                    <label for="q_content">问题描述</label>
                    <textarea class="form-control" id="q_content" name="q_content" placeholder="输入问题描述" rows="3"></textarea>
                </div>

                <div class="form-group">
                    <label for="file">问题描述图片</label>
                    <input type="file" name="file" id="file">
                    <p class="help-block">注：问题描述图片可以为空</p>
                </div>

                <div class="form-group">
                    <label for="q_c_id">问题所属课程</label>
                    <select class="form-control" id="q_c_id" name="q_c_id">
                        <volist name="courseList" id="course">
                            <option value={$course.c_id}>{$course.c_name}</option>
                        </volist>
                    </select>
                </div>

                <button type="submit" class="btn btn-primary">提问</button>
            </form>



            <footer><p>Copyright &copy; 2016.Company name All rights reserved.<a target="_blank" href="http://www.cssmoban.com/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a></p></footer>
        </div>
        <!-- /. PAGE INNER  -->
    </div>
    <!-- /. PAGE WRAPPER  -->
</div>
<!-- /. WRAPPER  -->
<!-- JS Scripts-->
<!-- jQuery Js -->
<script src="assets/js/jquery-1.10.2.js"></script>
<!-- Bootstrap Js -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Metis Menu Js -->
<script src="assets/js/jquery.metisMenu.js"></script>
<script src="assets/js/select2.full.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $(".selectbox").select2();
    });
</script>
<!-- Custom Js -->
<script src="assets/js/custom-scripts.js"></script>



</body>
</html>
